/**
 * 
 */
package kr.co.insoft.core.repository.template.application;

import java.util.List;
import java.util.Map;

import kr.co.insoft.core.model.template.application.EventEntityModel;
import kr.co.insoft.framework.exceptions.RepositoryException;

/**
 * @author IN-SOFT Inc. Park Jong Taek(jtpark@in-soft.co.kr)
 * 
 */
public interface EventRepository {

	/**
	 * Event 목록
	 * 
	 * @param pagingModel
	 * @return
	 * @throws RepositoryException
	 */
	public List<EventEntityModel> getList(Map<String, Object> param)
			throws RepositoryException;
	
	/**
	 * Event / ScriptEntityModel 검증
	 * 
	 * @param eventEntityModel
	 * @return
	 * @throws RepositoryException
	 */
	public EventEntityModel getEvent(
			EventEntityModel eventEntityModel) throws RepositoryException;

	/**
	 * Event 생성
	 * 
	 * @param eventEntityModel
	 * @throws RepositoryException
	 */
	public EventEntityModel createEvent(EventEntityModel eventEntityModel)
			throws RepositoryException;
	
	/**
	 * Event 삭제
	 * 
	 * @param eventEntityModel
	 * @throws RepositoryException
	 */
	public void doRemoveEvent(Map<String, Object> param)
			throws RepositoryException;
	
	/**
	 * Event 수정
	 * 
	 * @param eventEntityModel
	 * @throws RepositoryException
	 */
	public void doEditEvent(EventEntityModel eventEntityModel)
			throws RepositoryException;

	/**
	 * Event Name 중복체크
	 * 
	 * @param eventEntityModel
	 * @throws RepositoryException
	 */
	public int isExistEventName(EventEntityModel eventEntityModel)
			throws RepositoryException;

}
